﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace Providers.Objetos
{
    [MetadataType(typeof(Objeto_Validation))]
    public partial class Objeto : ISoftDeleteEntity
    {
    }

    [Bind(Exclude = "ID")]
    public class Objeto_Validation
    {
        [DisplayName("Observaciones")]
        [StringLength(4000, ErrorMessage = "Limite del campo excedido.")]
        public string Details { get; set; }

        [DisplayName("Nombre")]
        [Required]
        [StringLength(200, ErrorMessage = "El nombre debe ser menor a 200 caracteres.")]
        public string Name { get; set; }
    }
}